package com.db.williamchart.plugin;

import android.graphics.Canvas;
import android.graphics.Paint;

import com.db.williamchart.Labels;
import com.db.williamchart.data.Label;

import java.util.List;

public class AxisLabels implements Labels {
    @Override
    public void draw(Canvas canvas, Paint paint, List<Label> xLabels) {
        for (Label label : xLabels) {
            canvas.drawText(
                    label.getLabel(),
                    label.getScreenPositionX(),
                    label.getScreenPositionY(),
                    paint
            );
        }
    }
}
